package com.nchu.service.impl;

import com.nchu.mappers.OrdertransationMapper;
import com.nchu.mappers.UserMapper;
import com.nchu.pojo.OrderTransation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderTransationServiceimpl {
    @Autowired
    private OrdertransationMapper mapper;
    List<OrderTransation> findall(){

        return mapper.findall();
    };
    OrderTransation findone(int id){
        return mapper.findone(id);
    };

    int delectone(int id){
        return mapper.delectone(id);
    };
    List<OrderTransation> mybill(int userid){
        return mapper.mybill(userid);
    };

}
